package com.nd.qa.shareplate.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nd.qa.shareplate.IDao.ProjectUserMapper;
import com.nd.qa.shareplate.model.ProjectUser;
import com.nd.qa.shareplate.service.ProjectUserService;

@Service("com.nd.qa.shareplate.service.ProjectUserService")
public class ProjectUserServiceImpl implements ProjectUserService{

	@Autowired
	private ProjectUserMapper projectUserMapper;
	
	@Override
	public void insertProjectUser(ProjectUser projectUser) {
		projectUserMapper.insertProjectUser(projectUser);
	}

	@Override
	public List<ProjectUser> queryProjectUser(String projectId, String platformType) {
		ProjectUser projectUser = new ProjectUser();
		projectUser.setProjectId(projectId);
		projectUser.setPlatformType(platformType);
		return projectUserMapper.queryProjectUser(projectUser);
	}

	@Override
	public void updateProjectUser(ProjectUser projectUser) {
		projectUserMapper.updateProjectUser(projectUser);
	}

	
}
